<?php
use app\common\tool\Tool;
?>
<!DOCTYPE html>
<head>
    {include file='public_file/header' /}
</head>
<body>
<div class="container-fluid">
    {include file='public_file/nav_tabs' /}

    <form class="form-horizontal" action="{:url('extended/add')}" method="post" >
        <div class="bs-example">
            <table class="table table-bordered">
                <tr>
                    <th>标题</th>
                    <th>
                        <input class="form-control text" type="text" name="title" value="{$info.title ?? ''}">
                        <span class="form-required">*</span>
                    </th>
                </tr>
                <tr>
                    <th width="150">所属类型</th>
                    <td>
                        <?=Tool::get('form')->select('group', $info['groups'], object_get($info,'group'), ['class' => 'form-control text'])?>
                        <span class="form-required">*</span>
                    </td>
                </tr>
                <tr>
                    <th>数据库名称</th>
                    <th>
                        <input class="form-control text" type="text" name="name" value="{$info.name  ?? ''}">
                    </th>
                </tr>
                <tr>
                    <th>描述</th>
                    <th>
                        <textarea class="form-control text"  name="comment" >{$info.comment ?? ''}</textarea>
                    </th>
                </tr>
            </table>
        </div>

        <div class="form-actions col-sm-12">
            <button type="button" class="btn btn-primary ajax-post" autocomplete="off">
                保存
            </button>
            <a class="btn btn-default active" href="JavaScript:history.go(-1)">返回</a>
        </div>
    </form>
</div>

{include file='public_file/footer' /}
</body>
</html>
